<template>
<div class="rootbox">
  <Left class="leftbox"/>
  <router-view  class="middlebox"></router-view>

</div>

</template>

<script>
import Left from './rootLeft'

export default {
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  components:{
    Left
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.rootbox{
  overflow: hidden;
  background-color: rgba(0, 0, 0, .3);
  position: relative;
  width: 100%;
  height: 100%;

}
.leftbox{
    width: 240px;
    position: absolute;
    top: 0;left: 0;
    background-color: #f00;
    height: 100%;
  }
  .middlebox{
    width: 100%;
    padding-left: 240px;
    box-sizing: border-box;
    font-size: 30px;
    color: #fff;
  }

</style>
